Optimal. Leaf size=61 \[ -\frac {64 \cos ^7(a+b x)}{7 b}+\frac {64 \cos ^9(a+b x)}{3 b}-\frac {192 \cos ^{11}(a+b x)}{11 b}+\frac {64 \cos ^{13}(a+b x)}{13 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4373, 2645,
276} \begin {gather*} \frac {64 \cos ^{13}(a+b x)}{13 b}-\frac {192 \cos ^{11}(a+b x)}{11 b}+\frac {64 \cos ^9(a+b x)}{3 b}-\frac {64 \cos ^7(a+b x)}{7 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2645
Rule 4373
Rubi steps
\begin {align*} \int \sin (a+b x) \sin ^6(2 a+2 b x) \, dx &=64 \int \cos ^6(a+b x) \sin ^7(a+b x) \, dx\\ &=-\frac {64 \text {Subst}\left (\int x^6 \left (1-x^2\right )^3 \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {64 \text {Subst}\left (\int \left (x^6-3 x^8+3 x^{10}-x^{12}\right ) \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {64 \cos ^7(a+b x)}{7 b}+\frac {64 \cos ^9(a+b x)}{3 b}-\frac {192 \cos ^{11}(a+b x)}{11 b}+\frac {64 \cos ^{13}(a+b x)}{13 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.35, size = 47, normalized size = 0.77 \begin {gather*} \frac {2 \cos ^7(a+b x) (-5230+6377 \cos (2 (a+b x))-1890 \cos (4 (a+b x))+231 \cos (6 (a+b x)))}{3003 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 97, normalized size = 1.59
method | result | size |
default | \(-\frac {5 \cos \left (x b +a \right )}{16 b}-\frac {5 \cos \left (3 x b +3 a \right )}{64 b}+\frac {3 \cos \left (5 x b +5 a \right )}{64 b}+\frac {3 \cos \left (7 x b +7 a \right )}{224 b}-\frac {\cos \left (9 x b +9 a \right )}{96 b}-\frac {\cos \left (11 x b +11 a \right )}{704 b}+\frac {\cos \left (13 x b +13 a \right )}{832 b}\) | \(97\) |
risch | \(-\frac {5 \cos \left (x b +a \right )}{16 b}-\frac {5 \cos \left (3 x b +3 a \right )}{64 b}+\frac {3 \cos \left (5 x b +5 a \right )}{64 b}+\frac {3 \cos \left (7 x b +7 a \right )}{224 b}-\frac {\cos \left (9 x b +9 a \right )}{96 b}-\frac {\cos \left (11 x b +11 a \right )}{704 b}+\frac {\cos \left (13 x b +13 a \right )}{832 b}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 80, normalized size = 1.31 \begin {gather*} \frac {231 \, \cos \left (13 \, b x + 13 \, a\right ) - 273 \, \cos \left (11 \, b x + 11 \, a\right ) - 2002 \, \cos \left (9 \, b x + 9 \, a\right ) + 2574 \, \cos \left (7 \, b x + 7 \, a\right ) + 9009 \, \cos \left (5 \, b x + 5 \, a\right ) - 15015 \, \cos \left (3 \, b x + 3 \, a\right ) - 60060 \, \cos \left (b x + a\right )}{192192 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 4.14, size = 46, normalized size = 0.75 \begin {gather*} \frac {64 \, {\left (231 \, \cos \left (b x + a\right )^{13} - 819 \, \cos \left (b x + a\right )^{11} + 1001 \, \cos \left (b x + a\right )^{9} - 429 \, \cos \left (b x + a\right )^{7}\right )}}{3003 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 235 vs.
\(2 (53) = 106\).
time = 15.18, size = 235, normalized size = 3.85 \begin {gather*} \begin {cases} - \frac {1084 \sin {\left (a + b x \right )} \sin ^{5}{\left (2 a + 2 b x \right )} \cos {\left (2 a + 2 b x \right )}}{3003 b} - \frac {64 \sin {\left (a + b x \right )} \sin ^{3}{\left (2 a + 2 b x \right )} \cos ^{3}{\left (2 a + 2 b x \right )}}{143 b} - \frac {512 \sin {\left (a + b x \right )} \sin {\left (2 a + 2 b x \right )} \cos ^{5}{\left (2 a + 2 b x \right )}}{3003 b} - \frac {835 \sin ^{6}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )}}{3003 b} - \frac {2776 \sin ^{4}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{2}{\left (2 a + 2 b x \right )}}{3003 b} - \frac {2944 \sin ^{2}{\left (2 a + 2 b x \right )} \cos {\left (a + b x \right )} \cos ^{4}{\left (2 a + 2 b x \right )}}{3003 b} - \frac {1024 \cos {\left (a + b x \right )} \cos ^{6}{\left (2 a + 2 b x \right )}}{3003 b} & \text {for}\: b \neq 0 \\x \sin {\left (a \right )} \sin ^{6}{\left (2 a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 80, normalized size = 1.31 \begin {gather*} \frac {231 \, \cos \left (13 \, b x + 13 \, a\right ) - 273 \, \cos \left (11 \, b x + 11 \, a\right ) - 2002 \, \cos \left (9 \, b x + 9 \, a\right ) + 2574 \, \cos \left (7 \, b x + 7 \, a\right ) + 9009 \, \cos \left (5 \, b x + 5 \, a\right ) - 15015 \, \cos \left (3 \, b x + 3 \, a\right ) - 60060 \, \cos \left (b x + a\right )}{192192 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 46, normalized size = 0.75 \begin {gather*} -\frac {-\frac {64\,{\cos \left (a+b\,x\right )}^{13}}{13}+\frac {192\,{\cos \left (a+b\,x\right )}^{11}}{11}-\frac {64\,{\cos \left (a+b\,x\right )}^9}{3}+\frac {64\,{\cos \left (a+b\,x\right )}^7}{7}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________